//
//  HSGuideViewController.m
//  HSTS
//
//  Created by simon on 2017/2/8.
//  Copyright © 2017年 simon. All rights reserved.
//

#import "HSGuideViewController.h"
#import "HSLoginViewController.h"


@interface HSGuideViewController ()

@end

@implementation HSGuideViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setView];
    
}

// 创建UI
-(void)setView{
    UIScrollView *scrollView = [[UIScrollView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH , SCREEN_HEIGHT)];
    scrollView.contentSize =CGSizeMake(SCREEN_WIDTH, 0);
    scrollView.pagingEnabled = YES;
    scrollView.showsHorizontalScrollIndicator = NO;
    scrollView.showsVerticalScrollIndicator = NO;
    scrollView.bounces = NO;
    UIImageView *page1 = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    page1.image = [UIImage imageNamed:@"tousuyindao"];
    page1.backgroundColor = [UIColor clearColor];
    
    [self.view addSubview:scrollView];
    [scrollView addSubview:page1];

}
// 跳转
-(void)goinApp:(id)sender{
    HSLoginViewController *firstLogCtl = [[HSLoginViewController alloc]initWithNibName:@"HSLoginViewController" bundle:nil];
    UINavigationController *firstLogNavigationCtl = [[UINavigationController alloc] initWithRootViewController:firstLogCtl];
    firstLogNavigationCtl.navigationBar.hidden = YES;
    [self.navigationController pushViewController:firstLogCtl animated:NO];
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
